package independence.testing.events 
{
	import com.carlcalderon.arthropod.Debug;
	import flash.events.Event;
	
	import independence.core.IndyObject;
	import independence.testing.ITest;
	
	
	public class EventManagerTestRunner extends IndyObject implements ITest {
		
		public function EventManagerTestRunner() {
			
		}
		
		public function run():void
		{
			Debug.log("EventManagerTestRunner - Starting the EventManager Test...");
			var tester:EventManagerTest = new EventManagerTest();
			tester.addEventListener(Event.ACTIVATE, eventActivateListener);
			Debug.log("EventManagerTestRunner - Added an ACTIVATE event listener.");
			Debug.log("EventManagerTestRunner - Number of event listeners: " + tester.getEventListeners().length);
			Debug.log("EventManagerTestRunner - Disabling event listeners");
			tester.disableEventListeners();
			Debug.log("EventManagerTestRunner - Number of event listeners: " + tester.getEventListeners().length);
			Debug.log("EventManagerTestRunner - Enabling event listeners");
			tester.enableEventListeners();
			Debug.log("EventManagerTestRunner - Number of Event Listeners: " + tester.getEventListeners().length);
			Debug.log("EventManagerTestRunner - Clearing event listeners...");
			tester.clearEventListeners();
			Debug.log("EventManagerTestRunner - Number of Event listeners: " + tester.getEventListeners().length);
		}
		
		public function eventActivateListener(e:Event):void
		{
			
		}
	}
}